package com.yc.sole.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.sole.common.domain.StateCountResp;
import com.yc.sole.erp.entity.SaleOrder;
import com.yc.sole.erp.request.SaleOrderQueryReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper数据操作类
 *
 * @author yizuomin
 * @date 2023-12-15
 **/
public interface SaleOrderMapper extends BaseMapper<SaleOrder> {

    /**
     * 查询订单状态的数量
     *
     * @return
     */
    List<StateCountResp> selectOrderStateCount(@Param("bean") SaleOrderQueryReq queryReq);
}
